import React from 'react';
import {QuestionTextareaDefaultProps, QuestionTextareaPropType} from "./interface";
import {Input, Typography} from "antd";

const {Paragraph} = Typography
const {TextArea} = Input
const Components: React.FC<QuestionTextareaPropType> = (props: QuestionTextareaPropType) => {
  const {title = '', placeholder = ''} = {...QuestionTextareaDefaultProps, ...props}
  return (
    <div>
      <Paragraph strong>{title}</Paragraph>
      <div>
        <TextArea placeholder={placeholder}></TextArea>
      </div>
    </div>
  );
};

export default Components;
